<?php
class News extends CI_Controller{
	private $index_per_page = 6;
	
	public function __construct(){
		parent::__construct();
		$this->load->model("model_news");
	}
	
	public function index(){
		$data['active_news'] = 'y';	
		$this->load->model("model_home");	
		$data['title'] = TITLE.' - News';
		$data['has_banner'] = true;
		
		$this->load->view("news",$data);
	}
	
	public function detail($news_id=""){
		$data['active_news'] = 'y';	
		$data['title'] = TITLE.' - News Detail';
		$this->load->view("news_detail",$data);
	}
	
}